﻿using DevExpress.XtraPrinting;

namespace NAGFwk.UI.Modules {
    public partial class SpreadsheetModule : BaseModule {
        const string FileName = "SpreadSheet1.xlsx";
       
        public SpreadsheetModule() {
            InitializeComponent();         
        }
                
        protected override bool AutoMergeRibbon { get { return true; } }
        public override IPrintable PrintableComponent { get { return spreadsheetControl1; } }
        public override IPrintable ExportComponent { get { return spreadsheetControl1; } }
        public override bool AllowRtfTitle { get { return false; } }
        public override void ShowModule(bool firstShow)
        {
            base.ShowModule(firstShow);
            MainRibbon.SelectedPage = MainRibbon.MergedPages.GetPageByName(homeRibbonPage1.Name);
        }

    }
}
